package com.topisv.tms.utils.ordersStatus;

import java.util.Arrays;

public class OrdenoLists implements Comparable<OrdenoLists> {

	private String ordeno;
	private String boxCodes;

	 public String toString () {
         return (ordeno + "\t" + boxCodes);
 }
	@Override
	public int compareTo(OrdenoLists o) {
		String[] temp = { boxCodes, o.getBoxCodes() };
		Arrays.sort(temp);
		if (temp[0].equals(boxCodes)) {
			return 1;
		} else {
			return -1;
		}
	}

	public String getOrdeno() {
		return ordeno;
	}

	public String getBoxCodes() {
		return boxCodes;
	}

	public OrdenoLists(String ordeno, String boxCodes) {
		super();
		this.ordeno = ordeno;
		this.boxCodes = boxCodes;
	}

}
